package week3;
import java.util.Scanner;

/**
 * Created by mc on 2017/3/11.
 */
class feishi{


}
public class test1 {
    public static void main(String[] arge) {

        int a,b,c,d,m;
        int[] n = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
;        System.out.printf("求几个费式数？");
        Scanner scanner = new Scanner(System.in);
        m = scanner.nextInt();
        for(b=1;b<m+1;b=b+1)
        {
            if(b-1==0)
                n[b-1]=b-1;
            else if(b-1==1)
                n[b-1]=b-1;
            else
                n[b-1]=n[b-2]+n[b-3];
        }
        for(a=0;a<b-1;a=a+1)
        {
            System.out.printf("%d,",n[a]);
        }
        }


}
